package com.example.demo;

/**
 * Hello world!
 *
 */
public class App 
{
	/**
	 * Create a new sds string with the content specified by the 'init' pointer
 * and 'initlen'.
 * If NULL is used for 'init' the string is initialized with zero bytes.
 *
 * The string is always null-termined (all the sds strings are, always) so
 * even if you create an sds string with:
 *
 * mystring = sdsnewlen("abc",3);
 *
 * You can print the string with printf() as there is an implicit \0 at the
 * end of the string. However the string is binary safe and can contain
 * \0 characters in the middle, as the length is stored in the sds header.
	 **/
    public static void main( String[] args )
    {
        System.out.println( "Hello World!" );
        String url="https://support.mxc-exchange.com/hc/zh-cn/articles/360048844051-MXC抹茶M-Day第十二期CENNZ抽签活动摇号结果公告";
        String r=url.substring(url.lastIndexOf("/"));
        System.out.println(r);
        String contentUrl=url.substring(0,url.lastIndexOf("/"))+r.substring(0, r.indexOf("-"));
        System.out.println(contentUrl);
    }
}
